package com.packet.mapper;

import com.packet.pojo.Department;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @className:DepartmentMapper
 * @Author:wallet_packet Date:2023-11-11 14:03
 * @Describe:
 */
@Repository
@Mapper
public interface DepartmentMapper {
    ////获得部门所有信息
    //public Collection<Department> getDepartments(){
    //    return departments.values();
    //}
    ////通过id得到部门信息
    //public Department getDepartmentById(Integer id){
    //    return departments.get(id);
    //}


    //获得部门信息
    public List<Department> getDepartments();

    public Department getDepartmentById(Integer id);
}
